package com.maple.excel.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * <p>客户导入接收类</p>
 *
 * @author maple
 */
@Data
public class CustomerInfoBatch {

    @ExcelProperty(index = 0)
    @NotNull(message = "客户号不能为空！")
    @Length(max = 30, message = "客户号不能超过30个汉字")
    private String number;

    @ExcelProperty(index = 1)
    @Length(max = 10, message = "客户姓名不能超过10个汉字")
    private String name;

    @ExcelProperty(index = 2)
    @NotNull(message = "客户手机号不能为空！")
    private String mobile;

    @ExcelProperty(index = 3)
    @Length(max = 50, message = "客户描述不能超过50个汉字")
    private String description;
}
